package vip.geeker.iotms.persistance.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;

import java.math.BigDecimal;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class DeviceData extends PageParam {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer deviceId;

    private Integer paramsId;

    private BigDecimal paramsValue;

    private Date createTime;

    private String batchNo;

    @TableField(exist = false)
    private String deviceName;

    @TableField(exist = false)
    private String paramsName;

    @TableField(exist = false)
    private String typeName;

    @TableField(exist = false)
    private String no;

    @TableField(exist = false)
    private String unit;
}